import request from '@/utils/request'

export function all() {
  return request({
    url: '/pck/all',
    method: 'get',
  })
}
export function toggelStatus(pckId) {
  return request({
    url: '/pck/toggleStatus/'+pckId,
    method: 'get',
  })
}
export function saveAdd(data) {
  return request({
    url: '/pck/add',
    method: 'post',
    data
  })
}
export function saveEdit(data) {
  return request({
    url: '/pck/edit',
    method: 'post',
    data
  })
}
export function del(pckId) {
  return request({
    url: '/pck/delete/'+pckId,
    method: 'get',
  })
}



export function cascade() {
  return request({
    url: '/area/cascade',
    method: 'get',
  })
}


